#define _CRT_SECURE_NO_WARNINGS 1
#include <algorithm>
#include<iostream>
#include<vector>
using namespace std;
int main()
{
	vector<int> v(10000);
	int N = 0;
	cin >> N;
	for (int i = 0; i < N; i++)
	{
		cin >> v[i];
	}

	sort(v.begin(), v.end());

	for (auto i : v)
	{
		cout << v[i] << " ";
	}
	return 0;
}